#import "OmCommonButton2.h"
@implementation OmCommonButton2
- (instancetype)initWithTitle:(NSString *)title {
    self = [super init];
    if (self) {
        [self setTitle:title forState:UIControlStateNormal];
        [self setTitleColor:HexadecimalColor(@"#FFFFFF") forState:UIControlStateNormal];
        self.titleLabel.font = MediumRPXFont(14);
        self.backgroundColor = HexadecimalColor(@"#F07896");
        self.layer.shadowColor = [UIColor colorWithRed:240/255.0 green:120/255.0 blue:150/255.0 alpha:0.3].CGColor;
        self.layer.shadowOffset = CGSizeMake(0,RPX(2));
        self.layer.shadowOpacity = 1;
        self.layer.shadowRadius = RPX(5);
        self.layer.cornerRadius = RPX(2);
        [self mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(RPX(150)));
            make.height.equalTo(@(RPX(44)));
        }];
    }
    return self;
}
@end
